package com.kfit.java8.stream;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Test2 {
	public static void main(String[] args) {
		
		//Stream.of()
		Stream<String> stream = Stream.of("悟空","唐僧","八戒","悟净","白龙马");
		
		//Arrays.
		String [] strArray = new String[] {"悟空","唐僧","八戒","悟净","白龙马"};
		stream = Stream.of(strArray);
		stream = Arrays.stream(strArray);
		
		//Conllections.
		List<String> list = Arrays.asList("悟空","唐僧","八戒","悟净","白龙马");
		stream = list.stream();
		
	}
}
